﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MS.InformationManagement.Support;
using MS.InformationManagement.Support.Constants;
using Microsoft.SharePoint.Taxonomy;

namespace MS.InformationManagement.Core.Support
{
    public static class TaxonomyNavigationHelper
    {
        public static string GetQueryUrlByTerm(string internalName, string group, string termset, string termSetItemName)
        {
            TaxonomyFieldValue selectedValue = TermStoreHelper.GetTaxonomyFieldByTerm(group, termset, termSetItemName);
            return string.Format("TreeField={0}&TreeValue={1}",internalName,selectedValue.TermGuid);
        }
    }
}
